package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Hotel;
import cn.wolfcode.luowowo.article.domain.HotelCity;
import cn.wolfcode.luowowo.article.domain.HotelCommend;
import cn.wolfcode.luowowo.article.domain.HotelScore;
import cn.wolfcode.luowowo.article.mapper.HotelMapper;
import cn.wolfcode.luowowo.article.service.IHotelService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class HotelServiceImpl implements IHotelService {

    @Autowired
    private HotelMapper hotelMapper;

    @Override
    public List<Hotel> selectAllHotel() {
        return hotelMapper.selectForList();
    }

    @Override
    public List<HotelCommend> selectAllHotelCommend(String content) {
        return hotelMapper.selectAll(content);
    }

    @Override
    public List<HotelCity> selectAllCities() {
        return hotelMapper.selectAllCities();
    }

    @Override
    public List<HotelScore> selectAllHotelScore(String cityName) {
        return hotelMapper.selectAllHotelScore(cityName);
    }

}
